package com.mall.openApi.controller;

import cn.hutool.core.lang.UUID;
import com.mall.common.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 谢君臣
 * @Date: 2022/8/6-15:57
 * @version: 1.0
 * @function:
 */
@Slf4j
@RestController
@RequestMapping("/openApi/sms")
public class SmsController {

    @GetMapping("/code")
    public Result getCode(@RequestParam("phone")String phone, @RequestParam("code")String code){
        log.info("模拟短信发送:向用户【"+phone+"】发送验证码："+code+"。");
        // todo 验证码功能
        return new Result().ok("success");
    }

}
